package interfaces;

public class Adventure {

	public Adventure() {
		// TODO 自动生成的构造函数存根
	}
	public static void t(CanFight x) {
		x.fight();
	}
	public static void u(CanSwim x) {
		x.swim();
	}
	public static void v(CanFly x) {
		
	}
	
	public static void w(ActionCharacter x) {
		x.fight();
	}
	public static void main(String[] arg) {
		Hero h = new Hero();
		t(h);
		u(h);
		v(h);
		w(h);
	}
}
